﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class ShopBLL
    {
        public DataTable Select(string TableName)
        {
            return new ShopDAL().Select(TableName);
        }
        public DataTable FY(string TableName,int YM)
        {
            return new ShopDAL().FY(TableName,YM);
        }
        public bool Add(ShopModel model)
        {
            return new ShopDAL().Add(model);
        }
        public bool Gai(ShopModel model,int id)
        {
            return new ShopDAL().Gai(model,id);
        }
        public ShopModel GetModelByID(string TableName,int id)
        {
            return new ShopDAL().GetModelByID(TableName,id);
        }
        public bool Del(string TableName,int id)
        {
            return new ShopDAL().Del(TableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new ShopDAL().SelectNo(tableName,mz);
        }
    }

}
